const isFunc = (func) => {
  return typeof func === 'function'
}

const genResult = (pass, msg = '') => ({ pass, msg })
const genResultV = (pass, msg = '', value = null) => ({ pass, msg, value })

module.exports = {
  isFunc,
  genResult,
  genResultV,
}
